<template>
	<view class="container">
		<!-- 理财 -->
		<view class="licai">
			<view class="licai1">
				<text>{{$t('licai.guanli')}}</text>
			</view>
			<view class="licai2">
				<view class="licai3">
					<view class="licai3-zuo">
					<view class="licai3-img">
						<text>D</text>
					</view>
					<text style="font-size: 30rpx;font-weight: 700;">DEIO</text>	
					</view>
					<text style="font-size: 28rpx;font-weight: 500;">$14.586</text>
				</view>
				<view class="licai4">
					<text>7%~15%</text>
				</view>
			</view>
		</view>
		<!-- 理财数量 -->
		<view class="shuliang">
			<text>{{$t('licai.shuliang')}}</text>
			<view class="inputshuliang">
				<input class="inputshuliang1" type="text" :placeholder="$t('licai.input')" />
				<text style="font-size: 30rpx;font-weight: 700;">USDT</text>
			</view>
			<text>{{$t('licai.guanli')}}</text>
			<view class="list">
				<view class="list-item" :class="{Active:ictive==index}" v-for="(item,index) in Data" @click="dianday(index)">
					<text>{{item}}{{$t('licai.day')}}</text>
				</view>
			</view>
			<!-- 立即理财 -->
			<view class="lijilicai">
				<text>{{$t('licai.lijilicai')}}</text>
			</view>
			<view class="dingdan">
				<view class="dingdan1" @click="godingdan">
					<text>{{$t('licai.chakanlicai')}}</text>
					<image class="dingdan1-img" src="/static/icon/you.png" mode=""></image>
				</view>
			</view>
		</view>
		<!-- 规则说明 -->
		<view class="guizhe">
			<text class="guizhe1">{{$t('licai.guizhe')}}</text>
			<text>这是个规则说明这是个规则说明这是个规则说明这是个规则说明这是个规则说明这是个规则说明这是个规则说明这是个规则说明这是个规则说明这是个规则说明这是个规则说明这是个规则说明</text>
		</view>
	</view>
</template>

<script>
import {
		Debounce
	} from "@/api/debounce.js"; //防抖
	export default {
		data() {
			return {
				Data: ['7','15','30'],
				ictive:0
			}
		},
		onLoad() {
		uni.setNavigationBarTitle({
		  title:  this.$t('licais'), // 必填，页面标题）
		 })		
		},
		methods: {
			dianday(index) {
				this.ictive=index
			},
			// 理财订单
			godingdan:Debounce(function(){
				this.$tab.navigateTo('/pages/my/dingdan')
			},1000)
		},
	}
</script>

<style>
	.container{
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	.licai{
		width: 94%;
		padding: 20rpx;
		display: flex;
		flex-direction: column;
	}
	.licai1{
		width: 100%;
		font-size: 28rpx;
		font-weight: 700;
	}
	.licai2{
		width: 92%;
		padding: 30rpx;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		background-color: #3c3c40;
		border-radius: 20rpx;
		margin-top: 20rpx;
	}
	.licai3{
		display: flex;
		flex-direction: column;
	}
	.licai3-zuo{
		display: flex;
		flex-direction: row;
		align-items: center;
		margin-bottom: 15rpx;
	}
	.licai3-img{
		width: 60rpx;
		height: 60rpx;
		border-radius: 50%;
		margin-right: 15rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 60rpx;
		font-weight: 700;
		border-radius: 50%;
		border: 8rpx solid #a5abfc;
		border-radius: 50%;
		background: #a5abfc;
		box-shadow: inset 5px 5px 10px #5e6190,
		            inset -5px -5px 10px #ecf5ff;
	}
	.licai4{
		width: 180rpx;
		height: 80rpx;
		font-size: 28rpx;
		font-weight: 500;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 20rpx;
		border: 1rpx solid #a5abfc;
		
	}
	.shuliang{
		width: 86%;
		padding: 30rpx;
		display: flex;
		flex-direction: column;
		font-size: 28rpx;
		font-weight: 700;
		background-color: #3c3c40;
		border-radius: 20rpx;
	}
	.inputshuliang{
		width: 96%;
		padding: 20rpx;
		margin-top: 20rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		border-radius: 20rpx;
		border: 1rpx solid #a5abfc;
		margin-bottom: 30px;
	}
	.inputshuliang1{
		width: 80%;
	}
	.list{
		width: 100%;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		margin-top: 20rpx;
		margin-bottom: 30rpx;
	}
	.list-item{
		width: 180rpx;
		height: 80rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 20rpx;
		border: 1rpx solid #9b9b9b;
	}
	.Active{
		border: 1rpx solid #a5abfc;
	}
	.lijilicai{
		width: 100%;
		height: 90rpx;
		border-radius: 20rpx;
		background: #4858b3;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-bottom: 30rpx;
		margin-top: 20rpx;
	}
	.dingdan{
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.dingdan1{
		display: flex;
		flex-direction: row;
		align-items: center;
		font-size: 28rpx;
		font-weight: 700;
	}
	.dingdan1-img{
		width: 40rpx;
		height: 40rpx;
		margin-left: 15rpx;
	}
	.guizhe{
		width: 94%;
		display: flex;
		flex-direction: column;
		font-size: 28rpx;
		font-weight: 500;
		margin-top: 30rpx;
		line-height: 34rpx;
	}
	.guizhe1{
		font-weight: 700;
		font-size: 30rpx;
		margin-bottom: 20rpx;
		
	}
</style>